package com.villaday.idf.model3;

import java.util.List;

public class OrdersPostEntity {

    /**
     * type : integer,订单类型，0：普通房源，7：预售，13：VIP升级，15：酒店
     * product : {"id":"string,产品ID","roomTypeId":"string,酒店房型ID","salePlanId":"string,酒店房型销售计划ID","type":"integer,产品类型，100：房源，99：酒店","quantity":"integer,订单产品数量，允许为空，默认为1"}
     * activity : {"id":"string,活动ID","type":"integer,订单活动类型，13：预售活动","quantity":"integer,订单产品数量"}
     * mobile : string,手机号码。提交数据时，客户端仅需仅需简单校验长度，是否为空即可，具体的校验由服务端完成
     * linkman : string,订单联系人，下单时提交的联系人信息，客户端仅需校验不为空即可
     * guests : [{"linkman":"string,居住人姓名(中文)","givenNameEn":"string,英文名","familyNameEn":"string,英文姓","mobile":"string,手机号","email":"string,邮箱","idcard":"string,身份证","passport":"string,护照"}]
     * checkInDate : string,入住时间，形式：yyyy-MM-dd，展示时客户端根据需要处理成其它形式
     * checkOutDate : string,退房时间，形式：yyyy-MM-dd，展示时客户端根据需要处理成其它形式
     * useWallet : boolean,是否使用钱包余额，默认为 false
     * walletDeductibleAmount  : integer,钱包抵扣金额
     * addressId : string,收货地址ID
     * email : string,邮箱
     * identityNumber : string,证件号
     * remarks : string,备注
     */

    private int type;
    private ProductBean product;
    private ActivityBean activity;
    private String mobile;
    private String linkman;
    private String checkInDate;
    private String checkOutDate;
    private boolean useWallet;
    private int walletDeductibleAmount;
    private String addressId;
    private String email;
    private String identityNumber;
    private String remarks;
    private List<GuestsBean> guests;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public ActivityBean getActivity() {
        return activity;
    }

    public void setActivity(ActivityBean activity) {
        this.activity = activity;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }

    public String getCheckInDate() {
        return checkInDate;
    }

    public void setCheckInDate(String checkInDate) {
        this.checkInDate = checkInDate;
    }

    public String getCheckOutDate() {
        return checkOutDate;
    }

    public void setCheckOutDate(String checkOutDate) {
        this.checkOutDate = checkOutDate;
    }

    public boolean isUseWallet() {
        return useWallet;
    }

    public void setUseWallet(boolean useWallet) {
        this.useWallet = useWallet;
    }

    public int getWalletDeductibleAmount() {
        return walletDeductibleAmount;
    }

    public void setWalletDeductibleAmount(int walletDeductibleAmount) {
        this.walletDeductibleAmount = walletDeductibleAmount;
    }

    public String getAddressId() {
        return addressId;
    }

    public void setAddressId(String addressId) {
        this.addressId = addressId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getIdentityNumber() {
        return identityNumber;
    }

    public void setIdentityNumber(String identityNumber) {
        this.identityNumber = identityNumber;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public List<GuestsBean> getGuests() {
        return guests;
    }

    public void setGuests(List<GuestsBean> guests) {
        this.guests = guests;
    }

    public static class ProductBean {
        /**
         * id : string,产品ID
         * roomTypeId : string,酒店房型ID
         * salePlanId : string,酒店房型销售计划ID
         * type : integer,产品类型，100：房源，99：酒店
         * quantity : integer,订单产品数量，允许为空，默认为1
         */

        private String id;
        private String roomTypeId;
        private String salePlanId;
        private int type;
        private int quantity;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getRoomTypeId() {
            return roomTypeId;
        }

        public void setRoomTypeId(String roomTypeId) {
            this.roomTypeId = roomTypeId;
        }

        public String getSalePlanId() {
            return salePlanId;
        }

        public void setSalePlanId(String salePlanId) {
            this.salePlanId = salePlanId;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getQuantity() {
            return quantity;
        }

        public void setQuantity(int quantity) {
            this.quantity = quantity;
        }
    }

    public static class ActivityBean {
        /**
         * id : string,活动ID
         * type : integer,订单活动类型，13：预售活动
         * quantity : integer,订单产品数量
         */

        private String id;
        private int type;
        private int quantity;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getQuantity() {
            return quantity;
        }

        public void setQuantity(int quantity) {
            this.quantity = quantity;
        }
    }

    public static class GuestsBean {
        /**
         * linkman : string,居住人姓名(中文)
         * givenNameEn : string,英文名
         * familyNameEn : string,英文姓
         * mobile : string,手机号
         * email : string,邮箱
         * idcard : string,身份证
         * passport : string,护照
         */

        private String linkman;
        private String givenNameEn;
        private String familyNameEn;
        private String mobile;
        private String email;
        private String idcard;
        private String passport;

        public String getLinkman() {
            return linkman;
        }

        public void setLinkman(String linkman) {
            this.linkman = linkman;
        }

        public String getGivenNameEn() {
            return givenNameEn;
        }

        public void setGivenNameEn(String givenNameEn) {
            this.givenNameEn = givenNameEn;
        }

        public String getFamilyNameEn() {
            return familyNameEn;
        }

        public void setFamilyNameEn(String familyNameEn) {
            this.familyNameEn = familyNameEn;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public String getIdcard() {
            return idcard;
        }

        public void setIdcard(String idcard) {
            this.idcard = idcard;
        }

        public String getPassport() {
            return passport;
        }

        public void setPassport(String passport) {
            this.passport = passport;
        }
    }
}
